package fantasyday.wowzolo.web.common;

import fantasyday.wowzolo.domain.Account;

import org.apache.wicket.Request;
import org.apache.wicket.protocol.http.WebSession;

public class WowzoloSession extends WebSession {
	private Account _account;
	
    protected WowzoloSession(Request request) {
        super(request);
    }

    public boolean isSignon() {
    	return _account != null;
    }
    
    public void signoff() {
    	_account = null;
    }
    
    public void setSignonedAccount(Account account) {
    	_account = account;
    }
    
    public Account getSignonedAccount() {
    	return _account;
    }

    public static WowzoloSession getJpetstoreSession() {
		return (WowzoloSession) WowzoloSession.get();
	}
} 
